﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConvertObjectToJs
{
    public class Class1
    {
        public IList<Class2> Class2List { get; set; }
        public string Hello { get; set; }
        public string thanks{ get; set; }
        public string World()
        {
            return "wrold";
        }
        public void Convert()
        {
            var objClass= Type.GetType("ProductOverviewModel");


        }

        public void Test()
        {
            this.Class2List = new List<Class2>();
            if (this.Class2List.GetType().GetGenericTypeDefinition() == typeof(List<>) )
            {
                int a = 0;
            }
        }
    }

    public class Class2
    {
        public string What { get; set; }
    }
    public class Class3
    {
        void test()
        {
            var t = Type.GetType("ConvertObjectToJs.Class1");
        }
    }
}
